package com.itheima.ioTest_2;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class propre {
    public static void main(String[] args) throws IOException {
       /* Properties pr=new Properties();
        FileReader fr=new FileReader("prop.properties");
        pr.load(fr);
        fr.close();
        System.out.println(pr);*/
        Properties pr=new Properties();
        pr.setProperty("zhangsan","1234");
        pr.setProperty("lisi","18934");
        pr.setProperty("wangwu","6934");
        FileWriter fw=new FileWriter("prop.properties");
        pr.store(fw,null);//第二个参数是解释
    }
}
